#define _CRT_SECURE_NO_WARNINGS 1

#include"Slist.h"

void SLTTest()
{
	SL* Plist = NULL;
	SLTPushBack(&Plist,1);
	SLTPushBack(&Plist, 2);
	SLTPushBack(&Plist, 3);
	SLTPushBack(&Plist, 4);
	SLTPushFront(&Plist, 5);
	SLTPushFront(&Plist, 6);
	SLTPushFront(&Plist, 7);
	SLTPopFront(&Plist);
	SLTPopBack(&Plist);
	SL* pos = SLTFindData(Plist, 2);
	if (pos != NULL)
	{
		SLTInsert(&Plist, pos, 20);
		SLTErase(&Plist, pos);
	}
	SLTPrint(Plist);
}

int main()
{
	SLTTest();
	return 0;
}